def yieldFeibolaqi():
    a = 0
    b = 1
    count = 0
    while count < 10:
        # 在此处将停顿，并且将值传递给调用next方法处
        yield a
        a, b = b, a + b
        count += 1


if __name__ == "__main__":
    fei = yieldFeibolaqi()
    while True:
        try:
            a = next(fei)
            print(a)
        except:
            break
